]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Delay showing until there is gesture progress
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Jun 2025 18:35:10 +0000 (20:35 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 28 Jun 2025 10:30:32 +0000 (12:30 +0200)
Currently swiping down in the session enters the overview, but
as there is no progress (clamped to 0 from negative), the only
visible effect is that the top bar transitions to transparent.

Avoid this glitch by delaying showing the overview until there
is some non-0 progress.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7456
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3777>
(cherry picked from commit fb30a94243c3ced887a8ccadb2987c27d61bf467)

js/ui/overview.js

index 88898bd631616873ed2f29d0d45af967c0167c2a..cb0bf22f364a97719aabd2a38624c3b81381bc54 100644 (file)
@@ -358,6 +358,9 @@ export class Overview extends Signals.EventEmitter {
     }
 
     _gestureUpdate(tracker, progress) {
+        if (progress === 0)
+            return;
+
         if (!this._shown) {
             this._shown = true;
             this._visible = true;